package cn.gov.pbc.dream.dao;

import cn.gov.pbc.dream.pojo.repository.BankFinancingProductRaiseInfoDo;
import org.apache.ibatis.annotations.Param;

import java.util.Date;

public interface BankFinancingProductRaiseInfoDoMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(BankFinancingProductRaiseInfoDo record);

    int insertSelective(BankFinancingProductRaiseInfoDo record);

    BankFinancingProductRaiseInfoDo selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(BankFinancingProductRaiseInfoDo record);

    int updateByPrimaryKey(BankFinancingProductRaiseInfoDo record);

    int deleteByReportOrgCodeAndReportDate(@Param("reportOrgCode") String reportOrgCode,
                                           @Param("reportDate") Date reportDate);

    int selectCountByProductCode(String productCode);

    int deleteByProductCode(String productCode);
}